home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / mysql / my.cnf
Encoding:
Text File  |  2007-04-03  |  3.6 KB  |  139 lines

  1. #
  2. # The MySQL database server configuration file.
  3. #
  4. # You can copy this to one of:
  5. # - "/etc/mysql/my.cnf" to set global options,
  6. # - "~/.my.cnf" to set user-specific options.
  7. # One can use all long options that the program supports.
  8. # Run program with --help to get a list of available options and with
  9. # --print-defaults to see which it would actually understand and use.
  10. #
  11. # For explanations see
  12. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  13.  
  14. # This will be passed to all mysql clients
  15. # It has been reported that passwords should be enclosed with ticks/quotes
  16. # escpecially if they contain "#" chars...
  17. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
  18. [client]
  19. port        = 3306
  20. socket        = /var/run/mysqld/mysqld.sock
  21.  
  22. # Here is entries for some specific programs
  23. # The following values assume you have at least 32M ram
  24.  
  25. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
  26. [mysqld_safe]
  27. socket        = /var/run/mysqld/mysqld.sock
  28. nice        = 0
  29.  
  30. [mysqld]
  31. #
  32. # * Basic Settings
  33. #
  34. user        = mysql
  35. pid-file    = /var/run/mysqld/mysqld.pid
  36. socket        = /var/run/mysqld/mysqld.sock
  37. port        = 3306
  38. basedir        = /usr
  39. datadir        = /var/lib/mysql
  40. tmpdir        = /tmp
  41. language    = /usr/share/mysql/english
  42. skip-external-locking
  43. #
  44. # Instead of skip-networking the default is now to listen only on
  45. # localhost which is more compatible and is not less secure.
  46. bind-address        = 127.0.0.1
  47. #
  48. # * Fine Tuning
  49. #
  50. key_buffer        = 16M
  51. max_allowed_packet    = 16M
  52. thread_stack        = 128K
  53. thread_cache_size    = 8
  54. #max_connections        = 100
  55. #table_cache            = 64
  56. #thread_concurrency     = 10
  57. #
  58. # * Query Cache Configuration
  59. #
  60. query_cache_limit       = 1M
  61. query_cache_size        = 16M
  62. #
  63. # * Logging and Replication
  64. #
  65. # Both location gets rotated by the cronjob.
  66. # Be aware that this log type is a performance killer.
  67. #log        = /var/log/mysql/mysql.log
  68. #
  69. # Error logging goes to syslog. This is a Debian improvement :)
  70. #
  71. # Here you can see queries with especially long duration
  72. #log_slow_queries    = /var/log/mysql/mysql-slow.log
  73. #long_query_time = 2
  74. #log-queries-not-using-indexes
  75. #
  76. # The following can be used as easy to replay backup logs or for replication.
  77. #server-id        = 1
  78. log_bin            = /var/log/mysql/mysql-bin.log
  79. # WARNING: Using expire_logs_days without bin_log crashes the server! See README.Debian!
  80. expire_logs_days    = 10
  81. max_binlog_size         = 100M
  82. #binlog_do_db        = include_database_name
  83. #binlog_ignore_db    = include_database_name
  84. #
  85. # * BerkeleyDB
  86. #
  87. # Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
  88. skip-bdb
  89. #
  90. # * InnoDB
  91. #
  92. # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
  93. # Read the manual for more InnoDB related options. There are many!
  94. # You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
  95. #skip-innodb
  96. #
  97. # * Security Features
  98. #
  99. # Read the manual, too, if you want chroot!
  100. # chroot = /var/lib/mysql/
  101. #
  102. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  103. #
  104. # ssl-ca=/etc/mysql/cacert.pem
  105. # ssl-cert=/etc/mysql/server-cert.pem
  106. # ssl-key=/etc/mysql/server-key.pem
  107.  
  108.  
  109.  
  110. [mysqldump]
  111. quick
  112. quote-names
  113. max_allowed_packet    = 16M
  114.  
  115. [mysql]
  116. #no-auto-rehash    # faster start of mysql but no tab completition
  117.  
  118. [isamchk]
  119. key_buffer        = 16M
  120.  
  121. #
  122. # * NDB Cluster
  123. #
  124. # See /usr/share/doc/mysql-server-*/README.Debian for more information.
  125. #
  126. # The following configuration is read by the NDB Data Nodes (ndbd processes)
  127. # not from the NDB Management Nodes (ndb_mgmd processes).
  128. #
  129. # [MYSQL_CLUSTER]
  130. # ndb-connectstring=127.0.0.1
  131.  
  132.  
  133. #
  134. # * IMPORTANT: Additional settings that can override those from this file!
  135. #
  136. !includedir /etc/mysql/conf.d/
  137.  
  138.